//
//  SessionEndTime.m
//  Conference Track Management
//
//  Created by Jiang on 2018/10/22.
//  Copyright © 2018 jiang. All rights reserved.
//

#import "SessionEndTime.h"

@implementation SessionEndTime
- (instancetype)initWithEarlist:(int)earlist{
    return [self initWithEarlist:earlist latest:earlist];
}
- (instancetype)initWithEarlist:(int)earlist latest:(int)latest{
    self = [super init];
    NSAssert(earlist <= latest, @"最早时间 <= 最晚时间");
    self.earlistHour = earlist;
    self.latestHour = latest;
    self.marginTime = (latest - earlist) * 60;
    return self;
}
@end
